﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace App.Validate
{
    public class AndCompositeValidatorElementAttribute:CompositeValidatorElementAttribute
    {
        public AndCompositeValidatorElementAttribute(string name, string validatorElements)
            : base(name, validatorElements)
        { }
        public override CompositeValidator CreateCompositeValidator(IEnumerable<Validator> validators)
        {
            return new AndCompositeValidator(string.Empty, validators);
        }
    }
}
